package com.example.raspberry_pi_demob.entity;

import java.io.Serializable;

/**
 * @author 
 * 
 */
public class AllData implements Serializable {
    private Integer timestamp;

    private Integer numberofsatellites;

    private String latitudeandlongitude;

    private Integer battery;

    private Integer temperature;

    private String humidity;

    private String atmosphericpressure;

    private String macaddress;

    private String datetime;

    private String raspberrypiname;

    private Integer updateinterval;

    private static final long serialVersionUID = 1L;

    public Integer getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Integer timestamp) {
        this.timestamp = timestamp;
    }

    public Integer getNumberofsatellites() {
        return numberofsatellites;
    }

    public void setNumberofsatellites(Integer numberofsatellites) {
        this.numberofsatellites = numberofsatellites;
    }

    public String getLatitudeandlongitude() {
        return latitudeandlongitude;
    }

    public void setLatitudeandlongitude(String latitudeandlongitude) {
        this.latitudeandlongitude = latitudeandlongitude;
    }

    public Integer getBattery() {
        return battery;
    }

    public void setBattery(Integer battery) {
        this.battery = battery;
    }

    public Integer getTemperature() {
        return temperature;
    }

    public void setTemperature(Integer temperature) {
        this.temperature = temperature;
    }

    public String getHumidity() {
        return humidity;
    }

    public void setHumidity(String humidity) {
        this.humidity = humidity;
    }

    public String getAtmosphericpressure() {
        return atmosphericpressure;
    }

    public void setAtmosphericpressure(String atmosphericpressure) {
        this.atmosphericpressure = atmosphericpressure;
    }

    public String getMacaddress() {
        return macaddress;
    }

    public void setMacaddress(String macaddress) {
        this.macaddress = macaddress;
    }

    public String getDatetime() {
        return datetime;
    }

    public void setDatetime(String datetime) {
        this.datetime = datetime;
    }

    public String getRaspberrypiname() {
        return raspberrypiname;
    }

    public void setRaspberrypiname(String raspberrypiname) {
        this.raspberrypiname = raspberrypiname;
    }

    public Integer getUpdateinterval() {
        return updateinterval;
    }

    public void setUpdateinterval(Integer updateinterval) {
        this.updateinterval = updateinterval;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        AllData other = (AllData) that;
        return (this.getTimestamp() == null ? other.getTimestamp() == null : this.getTimestamp().equals(other.getTimestamp()))
            && (this.getNumberofsatellites() == null ? other.getNumberofsatellites() == null : this.getNumberofsatellites().equals(other.getNumberofsatellites()))
            && (this.getLatitudeandlongitude() == null ? other.getLatitudeandlongitude() == null : this.getLatitudeandlongitude().equals(other.getLatitudeandlongitude()))
            && (this.getBattery() == null ? other.getBattery() == null : this.getBattery().equals(other.getBattery()))
            && (this.getTemperature() == null ? other.getTemperature() == null : this.getTemperature().equals(other.getTemperature()))
            && (this.getHumidity() == null ? other.getHumidity() == null : this.getHumidity().equals(other.getHumidity()))
            && (this.getAtmosphericpressure() == null ? other.getAtmosphericpressure() == null : this.getAtmosphericpressure().equals(other.getAtmosphericpressure()))
            && (this.getMacaddress() == null ? other.getMacaddress() == null : this.getMacaddress().equals(other.getMacaddress()))
            && (this.getDatetime() == null ? other.getDatetime() == null : this.getDatetime().equals(other.getDatetime()))
            && (this.getRaspberrypiname() == null ? other.getRaspberrypiname() == null : this.getRaspberrypiname().equals(other.getRaspberrypiname()))
            && (this.getUpdateinterval() == null ? other.getUpdateinterval() == null : this.getUpdateinterval().equals(other.getUpdateinterval()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getTimestamp() == null) ? 0 : getTimestamp().hashCode());
        result = prime * result + ((getNumberofsatellites() == null) ? 0 : getNumberofsatellites().hashCode());
        result = prime * result + ((getLatitudeandlongitude() == null) ? 0 : getLatitudeandlongitude().hashCode());
        result = prime * result + ((getBattery() == null) ? 0 : getBattery().hashCode());
        result = prime * result + ((getTemperature() == null) ? 0 : getTemperature().hashCode());
        result = prime * result + ((getHumidity() == null) ? 0 : getHumidity().hashCode());
        result = prime * result + ((getAtmosphericpressure() == null) ? 0 : getAtmosphericpressure().hashCode());
        result = prime * result + ((getMacaddress() == null) ? 0 : getMacaddress().hashCode());
        result = prime * result + ((getDatetime() == null) ? 0 : getDatetime().hashCode());
        result = prime * result + ((getRaspberrypiname() == null) ? 0 : getRaspberrypiname().hashCode());
        result = prime * result + ((getUpdateinterval() == null) ? 0 : getUpdateinterval().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", timestamp=").append(timestamp);
        sb.append(", numberofsatellites=").append(numberofsatellites);
        sb.append(", latitudeandlongitude=").append(latitudeandlongitude);
        sb.append(", battery=").append(battery);
        sb.append(", temperature=").append(temperature);
        sb.append(", humidity=").append(humidity);
        sb.append(", atmosphericpressure=").append(atmosphericpressure);
        sb.append(", macaddress=").append(macaddress);
        sb.append(", datetime=").append(datetime);
        sb.append(", raspberrypiname=").append(raspberrypiname);
        sb.append(", updateinterval=").append(updateinterval);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}